9b4f36b2b988b9e760f7a08349ad4392dac6cad5,core/baseLanguage/baseLanguage/source_gen/jetbrains/mps/baseLanguage/util/plugin/refactorings/ConvertAnonymousRefactoring.java,ConvertAnonymousRefactoring,collectTypeVaryables,#,77

Before Change


    for (SNode typeReference : Sequence.fromIterable(typeVariableReferences)) {
      SNode typeDeclaration = SLinkOperations.getTarget(SNodeOperations.cast(typeReference, "jetbrains.mps.baseLanguage.structure.TypeVariableReference"), "typeVariableDeclaration", false);
      if (!(MapSequence.fromMap(this.myInnerTypeVaryables).containsKey(typeDeclaration))) {
        MapSequence.fromMap(this.myInnerTypeVaryables).put(typeDeclaration, SNodeOperations.copyNode(typeDeclaration));
      }
      SNodeOperations.replaceWithAnother(typeReference, new ConvertAnonymousRefactoring.QuotationClass_qy1soj_a0a0c0c0e().createNode(MapSequence.fromMap(this.myInnerTypeVaryables).get(typeDeclaration)));
    }

After Change


      }
    })) {
      if (SetSequence.fromSet(usedTypeVariables).contains(decl)) {
        MapSequence.fromMap(myInnerTypeVariables).put(decl, SNodeOperations.copyNode(decl));
      }
    }
  }